<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册页</title>
    <style>        body {
        font-family: Arial, sans-serif;
        background-color: #f4f4f9;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        margin: 0;
    }
    .register-container {
        background-color: #fff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        width: 300px;
    }
    .register-container h1 {
        text-align: center;
        margin-bottom: 20px;
    }
    .register-container input[type="text"],
    .register-container input[type="password"],
    .register-container input[type="email"] {
        width: 80%; /* 设置一个较小的宽度 */
        padding: 10px;
        margin: 10px auto; /* 使用 margin: 0 auto; 来居中 */
        border: 1px solid #ccc;
        border-radius: 4px;
        display: block; /* 确保每个输入框独占一行 */
    }
    .register-container input[type="submit"] {
        width: 100%;
        padding: 10px;
        background-color: #28a745;
        border: none;
        border-radius: 4px;
        color: white;
        font-size: 16px;
        cursor: pointer;
    }
    .register-container input[type="submit"]:hover {
        background-color: #218838;
    }
    </style>
</head>
<body>
<div class="register-container">
    <h1>注册页</h1>
    <form action="register" method="post">
        <input type="text" name="username" placeholder="用户名" required>
        <input type="password" name="password" placeholder="密码" required>
        <input type="email" name="email" placeholder="邮箱" required>
        <input type="text" name="phone" placeholder="手机" required>
        <input type="submit" value="注册">
    </form>
</div>
</body>
</html>